package com.atguigu.lease.web.admin.service;

import com.atguigu.lease.model.entity.ApartmentInfo;
import com.atguigu.lease.web.admin.vo.apartment.ApartmentDetailVo;
import com.atguigu.lease.web.admin.vo.apartment.ApartmentItemVo;
import com.atguigu.lease.web.admin.vo.apartment.ApartmentQueryVo;
import com.atguigu.lease.web.admin.vo.apartment.ApartmentSubmitVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author liubo
* @description 针对表【apartment_info(公寓信息表)】的数据库操作Service
* @createDate 2023-07-24 15:48:00
*/
public interface ApartmentInfoService extends IService<ApartmentInfo> {

    void customPage(Page<ApartmentItemVo> page, ApartmentQueryVo queryVo);

    void customSaveOrUpdate(ApartmentSubmitVo apartmentSubmitVo);

    ApartmentDetailVo customGetById(Long id);

    /*
    删除公寓
        业务成功: result.ok();
        业务失败：result.fail();
        删除失败，抛出异常，不会在此处返回！
     */
    void customRemoveById(Long id);
}
